<template>
  <div class="son-box">
    <p>我叫{{ name }}</p>
    <button
      @click="$emit('call-father', 'vue我必学会')"
    >我饿了</button>
  </div>
</template>

<script>
export default {
  props: ['name']
}
</script>

<style lang="sass">
.son-box
  border: 1px solid skyblue
  background: #f0f0f0
  padding: 10px
</style>
